package com.demo.service;

import com.demo.entity.SaleCommission;
import com.demo.vo.SaleCommissionVo;

import java.util.List;

public interface ISaleCommissionService {

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param user
     * @return
     */
     List<SaleCommission> queryByPage(SaleCommissionVo user);

    int queryCount(SaleCommissionVo user);

    int deleteByPrimaryKey(Integer id);

    int insert(SaleCommission record);

    int insertSelective(SaleCommission record);

    SaleCommission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SaleCommission record);

    /**
     * 佣金支付
     * @param record
     * @return
     */
    Object giveCommission(SaleCommission record);

}
